<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use frontend\models\ArtForm;
use common\widgets\file_upload\FileUpload;
$this->title = '文章管理';
$this->params['breadcrumbs'][] = $this->title;
use yii\widgets\LinkPager;
?>
<div class="Weizhi">
         <span>当前位置 : </span><a href="#">首页 > </a><a href="#">已报名的培训
    </div>
    <div id="Contet">
         <div id="Left">
		  <h3>会员中心</h3>
		  <a <?php if (Yii::$app->controller->action->id == 'info'){echo 'class="on"';}?>  href="<?= yii\helpers\Url::to(['member/info']);?>">修改基本资料</a>
		  <a <?php if (Yii::$app->controller->action->id == 'message' || Yii::$app->controller->action->id == 'messagepage'){echo 'class="on"';}?> href="<?= yii\helpers\Url::to(['member/message']);?>">我的消息</a>
		  <a <?php if (Yii::$app->controller->action->id == 'apply' || Yii::$app->controller->action->id == 'apply_association'){echo 'class="on"';}?> href="<?= yii\helpers\Url::to(['member/apply']);?>">申请入会</a>
		  <a <?php if (Yii::$app->controller->id == 'meetingenroll'){echo 'class="on"';}?> href="<?= yii\helpers\Url::to(['meetingenroll/list']);?>">已报名培训</a>
		</div>
         <div id="Zhong" style="width:980px;">
         	<?php if(empty($model)){ ?> 暂无数据 <?php } else{ ?>
              <div id="Tile">
                   <h3>已报名的培训</h3>
              </div>
              <ul class="pxun">
              	<?php 
              	foreach($model as $key=>$vo){ ?>
                  <li>
                      <img src="/upload/<?= json_decode($vo['label_img'],true)['newname']?>" />
                      <div class="p_rt">
                           <h3><?= $vo['title']; ?></h3>
                           <p><?php echo(mb_substr(strip_tags($vo['content']),0,30,'utf-8')); ?>...</p>
                           <a href="<?= yii\helpers\Url::to(['meetingenroll/mettingview','id'=>$vo['id']]);?>">查看详情</a>
                      </div>
                      <div style="clear:both"></div>
                     
                  </li>
                <?php } } ?> 
              </ul>
			  
			  <ul id="Page">
                      <?php if($page)
                                {
                                    echo LinkPager::widget([
                                    'maxButtonCount' => 3,
                                    'prevPageLabel' =>'&lt;',
                                    'nextPageLabel' =>'&gt;',
                                    'pagination'=>$page,
                                    ]);
                                }
                                ?>
              </ul>
              
              
         </div>
         
         
         
         
         <div style="clear:both"></div>
</div>